package com.leo.train.business.service;

import com.leo.train.business.dto.SeatQueryDto;
import com.leo.train.business.entity.Seat;
import com.leo.train.business.vo.SeatVo;
import com.leo.train.common.resp.PageResult;

public interface SeatService {
    /**
     * 保存
     * @param seat
     */
    void save(Seat seat);

    /**
     * 删除
     * @param id
     */
    void deleteById(Long id);

    /**
     * 查询座位列表
     * @param seatQueryDto
     * @return
     */
    PageResult<SeatVo> list(SeatQueryDto seatQueryDto);

    /**
     * 详情
     * @param id
     * @return
     */
    SeatVo detail(Long id);

    /**
     * 生成座位
     * @param trainCode
     */
    void generateSeats(String trainCode);


}
